package cn.tedu.onlinestore.order.pojo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
public class Order {
    @ApiModelProperty(value = "订单ID")
    private Long id;
    @ApiModelProperty(value = "用户ID")
    private Long userId;
    @ApiModelProperty(value = "商户ID")
    private Long sellerId;
    @ApiModelProperty(value = "商品ID")
    private Long productsId;
    @ApiModelProperty(value = "收货地址ID")
    private Long addressId;
    @ApiModelProperty(value = "商品数量")
    private Integer amount;
    @ApiModelProperty(value = "订单总金额")
    private Double total;
    @ApiModelProperty(value = "订单状态")
    private String status;
    @ApiModelProperty(value = "订单创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    @ApiModelProperty(value = "订单更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;
}
